package com.pan.download5.parse.entity.auto.impl;

import com.pan.download5.parse.entity.auto.ClearAutoBase;

public class AutoNext extends ClearAutoBase {
    /**
     * condition格式
     * 1.开头 == / !=
     * 2.属性 如  text / attr: href
     * 3.内容 ’xxx‘
     */
    String condition;
    //click这是个xpath
    String clickXPath;

    public AutoNext() {
    }

    public AutoNext(String condition, String clickXPath, String xpath, String clearRegex) {
        super();
        super.clearRegex = clearRegex;
        super.xpath = xpath;
        this.condition = condition;
        this.clickXPath = clickXPath;
    }

    public String getCondition() {
        return condition;
    }

    public void setCondition(String condition) {
        this.condition = condition;
    }

    public String getClickXPath() {
        return clickXPath;
    }

    public void setClickXPath(String clickXPath) {
        this.clickXPath = clickXPath;
    }

    @Override
    public String toString() {
        return "AutoNext{" +
                "condition='" + condition + '\'' +
                ", clickXPath='" + clickXPath + '\'' +
                ", clearRegex='" + clearRegex + '\'' +
                ", xpath='" + xpath + '\'' +
                '}';
    }
}

